package xj.graph2d;

import java.util.*; 
import javax.swing.*; 

import xj.graph2d.app.DrawApp;

public class ViewOptions { 

  public ViewOptions(GraphDocument document) { 
    this.document = document;
  }

  public JComponent getComponent() {
    return comp; 
  }

  public void setView(SimpleDrawView view) { 
    this.view = view;
  }

  protected void setComponent(JComponent c) { 
    comp = c; 
  }

  public Object getProperty(String k) { 
    return options.get(k);
  }

  public void setProperty(String k, Object v) { 
    options.put(k, v);
  }

  protected GraphDocument document;
  protected SimpleDrawView view;
  protected JComponent comp;
  protected Map<String, Object> options = new HashMap<String, Object>(); 

}